package authstates 
{
	import flash.display.GradientType;
	import flash.display.SpreadMethod;
	import flash.display.Sprite;
	import flash.geom.Matrix;
	/**
	 * ...
	 * @author Anders Figenschow selvfølgelig
	 */
	public class Triangle extends Sprite
	{
		
		public function Triangle(color:uint) 
		{
			
			var fType:String = GradientType.LINEAR;
			var colors:Array = [ color, 0xffffff ];
			var alphas:Array = [ 1, 1 ];
			var ratios:Array = [ 0, 255 ];
			var matr:Matrix = new Matrix();
			matr.createGradientBox( 200, 400, 0, 0, 0 );
			matr.rotate(Math.PI);
			var sprMethod:String = SpreadMethod.PAD;
			
			graphics.clear();
			graphics.beginGradientFill( fType, colors, alphas, ratios, matr, sprMethod );
			graphics.lineTo(530, 0);
			graphics.lineTo(530, 200);
			graphics.lineTo(0, 0);
			graphics.endFill();
		}
		
	}

}